import { type IVxueColumnConfig, tableUtils } from '@/components/table'
import type { INoticeEntity } from '@/types'

export type slotRow = {
  row: INoticeEntity
}

const columnConfig: IVxueColumnConfig<INoticeEntity>[] = [
  {
    field: 'title',
    title: '标题',
    width: 200
  },
  {
    field: 'content',
    title: '内容'
  },
  {
    field: 'type',
    title: '类型',
    slot: 'type',
    width: 200
  },
  {
    field: 'status',
    title: '阅读状态',
    slot: 'status',
    width: 100
  },
  {
    field: 'channel',
    title: '渠道',
    slot: 'channel',
    width: 150
  },
  {
    field: 'sendTime',
    title: '发送时间',
    width: 200
  }
]

tableUtils.setChecked(columnConfig)

export { columnConfig }
